package com.jky.trial.service;

import com.jky.trial.entity.Task;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;

/**
 * 导出操作
 * Created by suweiming on 2017/10/5.
 */
public interface ExportService {
    public OutputStream exportExcel(String hql, List<Map> datas, ServletOutputStream outputStream);

    /**
     * 设置响应头
     *
     * @param response
     * @param request
     * @param fileName 下载文件名称
     */
    public void setResponseHeader(HttpServletResponse response, HttpServletRequest request, String fileName);

    /**
     * 导入勘察点
     *
     * @param inputStream
     * @return
     * @throws IOException
     */
    List<Task> importTaskExcel(InputStream inputStream,Integer projectId,Integer userId) throws IOException;

    /**
     * 导入律师擅长领域
     *
     * @param inputStream
     * @return
     * @throws IOException
     */
    List imporLawDomain(InputStream inputStream) throws IOException;

    /**
     * 预警关键词导入
     *
     * @param inputStream
     * @return
     * @throws IOException
     */
    List imporEarlyWarning(InputStream inputStream) throws IOException;

    List importjicengExcel(InputStream inputStream) throws IOException;

    List importLawLeaderExcel(InputStream inputStream) throws IOException;

    List importusercengExcel(InputStream inputStream) throws IOException;

    List importhelpExcel(InputStream inputStream) throws IOException;

    List importstatieExcel(InputStream inputStream) throws IOException;


}
